package com.ruibang.glass.equipment.entity.device;

import com.baomidou.mybatisplus.annotation.*;
import com.ruibang.glass.common.domain.file.FolderInfo;
import com.ruibang.glass.common.utils.validateannotation.NotBlank;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.Valid;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author mameng
 * @since 2024-03-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TechnicalDocumentManagement", description = "")
@TableName(value = "g_equipment_technical_document_management")
public class TechnicalDocumentManagement extends BaseEntity implements Serializable {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "设备ID")
    @NotBlank(message = "关联设备不可为空")
    private String equipmentId;

    @ApiModelProperty(value = "设备名称")
    @TableField(exist = false)
    private String deviceName;

    @ApiModelProperty(value = "文件夹信息")
    @TableField(exist = false)
    private List<FolderInfo> folderInfos;
    @TableLogic
    private String isDelete;
}
